home *** CD-ROM | disk | FTP | other *** search
/ Ray Dream Studio 5 / Ray Dream.iso / pc / DreamSDK / Windows / SAMPLES / LIGHT / LITE / LITEFAC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-11  |  1.1 KB  |  37 lines

  1. // Copyright (c)1995 Ray Dream, Inc. All Rights Reserved.
  2. /* $Id: LiteFac.h 1.1 1996/07/19 00:04:32 Damien Exp $ */
  3.  
  4. ////////////////////////////////////////////////////////////////////////
  5. //   First Light Source Example : Beams Light                         //
  6. //--------------------------------------------------------------------//
  7. //   Declaration of the Beams Light Class Factory                     //
  8. //////////////////////////////////////////////////////////////////////// 
  9.  
  10.  
  11. #ifndef __LITEFAC__
  12. #define __LITEFAC__  
  13.  
  14. #ifndef __I3DEX__
  15. #include "I3DEx.h"
  16. #endif
  17.  
  18. // BeamsLight Class Factory :
  19. class BeamsLightClassFactory : public IClassFactory {
  20. public:
  21.   BeamsLightClassFactory(void);
  22.   ~BeamsLightClassFactory(void);
  23.  
  24.   //IUnknown members
  25.   STDMETHODIMP         QueryInterface(REFIID, LPVOID FAR*);
  26.   STDMETHODIMP_(ULONG) AddRef(void);
  27.   STDMETHODIMP_(ULONG) Release(void);
  28.  
  29.   //IClassFactory members
  30.   STDMETHODIMP         CreateInstance(LPUNKNOWN, REFIID, LPVOID FAR*);
  31.   STDMETHODIMP         LockServer(BOOL);
  32. protected:
  33.   ULONG           m_cRef;
  34.   };                         
  35.  
  36. #endif
  37.